<?php

namespace App\Miya\Models;

use Illuminate\Database\Eloquent\Model;

class InfoType extends Model
{
    protected $guarded = [];
    protected $touches = ['info'];

    public function info()
    {
        return $this->belongsTo(Info::class);
    }

    public function module()
    {
        return $this->belongsTo(Module::class);
    }

    public function module_type()
    {
        return $this->belongsTo(ModuleType::class, 'module_type_id');
    }
}
